Skip to content

Conversation

@rjernst
Copy link
Member

@rjernst rjernst commented Mar 23, 2025

This commit adds a new command line option to the run task to include plugins. The option takes in a comma separated list of plugins from the plugins directory. For example:

./gradlew run --with-plugins=analysis-icu,analysis-nori

This commit adds a new command line option to the run task to include
plugins. The option takes in a comma separated list of plugins from the
plugins directory. For example:
```
./gradlew run --with-plugins=analysis-icu,analysis-nori
```
@rjernst rjernst added >test Issues or PRs that are addressing/adding tests :Delivery/Build Build or test infrastructure auto-backport Automatically create backport pull requests when merged v8.18.1 v8.19.0 v9.0.1 v9.1.0 labels Mar 23, 2025
@rjernst rjernst requested a review from a team as a code owner March 23, 2025 19:13
@elasticsearchmachine elasticsearchmachine added the Team:Delivery Meta label for Delivery team label Mar 23, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-delivery (Team:Delivery)

for (String plugin : this.plugins) {
cluster.plugin(":plugins:" + plugin);
}
;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Copy link
Contributor

@breskeby breskeby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a tiny typo

this.plugins = Arrays.asList(plugins.split(","));
for (var cluster : getClusters()) {
for (String plugin : this.plugins) {
cluster.plugin(":plugins:" + plugin);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plain FYI. I noticed this is incompatible with Gradle Configuration cache. that's likely not a big deal for using ./gradlew run at the moment, but we will rework or remove cluster.plugin(String) and cluster.module(String) at one point as it breaks configuration compatibility.

@rjernst rjernst merged commit 740d983 into elastic:main Mar 24, 2025
18 checks passed
@rjernst rjernst deleted the build/run_with_plugins branch March 24, 2025 17:39
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.18
8.x
9.0

rjernst added a commit to rjernst/elasticsearch that referenced this pull request Mar 24, 2025
This commit adds a new command line option to the run task to include
plugins. The option takes in a comma separated list of plugins from the
plugins directory. For example:
```
./gradlew run --with-plugins=analysis-icu,analysis-nori
```
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Mar 24, 2025
This commit adds a new command line option to the run task to include
plugins. The option takes in a comma separated list of plugins from the
plugins directory. For example:
```
./gradlew run --with-plugins=analysis-icu,analysis-nori
```
rjernst added a commit to rjernst/elasticsearch that referenced this pull request Mar 24, 2025
This commit adds a new command line option to the run task to include
plugins. The option takes in a comma separated list of plugins from the
plugins directory. For example:
```
./gradlew run --with-plugins=analysis-icu,analysis-nori
```
elasticsearchmachine pushed a commit that referenced this pull request Mar 24, 2025
This commit adds a new command line option to the run task to include
plugins. The option takes in a comma separated list of plugins from the
plugins directory. For example:
```
./gradlew run --with-plugins=analysis-icu,analysis-nori
```
elasticsearchmachine pushed a commit that referenced this pull request Mar 24, 2025
This commit adds a new command line option to the run task to include
plugins. The option takes in a comma separated list of plugins from the
plugins directory. For example:
```
./gradlew run --with-plugins=analysis-icu,analysis-nori
```
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
This commit adds a new command line option to the run task to include
plugins. The option takes in a comma separated list of plugins from the
plugins directory. For example:
```
./gradlew run --with-plugins=analysis-icu,analysis-nori
```
elasticsearchmachine pushed a commit that referenced this pull request Apr 8, 2025
This commit adds a new command line option to the run task to include
plugins. The option takes in a comma separated list of plugins from the
plugins directory. For example:
```
./gradlew run --with-plugins=analysis-icu,analysis-nori
```

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team >test Issues or PRs that are addressing/adding tests v8.18.1 v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants